package com.linktel.productionLine.common;

/**
 * 基于ThreadLocal封装工具类，用于保存和获取当前的用户ID
 */
public class BaseContext {
    public static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static String getCurrentLog(){
        return threadLocal.get();
    }

    public static void setCurrentLog(String log){
        threadLocal.set(log);
    }
}